#include <stdio.h>

int main(void)

{
	int na,nb,nc;
	int sum;
	double ave;

	puts("请输入三个整数:");
	printf("整数A:"); scanf("%d",&na);	
	printf("整数B:"); scanf("%d",&nb);	
	printf("整数C:"); scanf("%d",&nc);	
	
	sum=na+nb+nc;
	ave=(double)sum/3;

	printf("它们的合计值是: %d\n",sum);
	printf("它们的平均值是: %5.1f\n",ave);

	return (0);
}
